package routers

import (
	"2301a_qidian/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//小说添加add
	beego.Router("/novel/add", &controllers.NovelController{}, "post:Add")
	//小说列表list
	beego.Router("/novel/list", &controllers.NovelController{}, "get:List")
	//小说删除del
	beego.Router("/novel/del", &controllers.NovelController{}, "post:Del")
	//小说修改update
	beego.Router("/novel/update", &controllers.NovelController{}, "post:Update")
	//小说详情detail
	beego.Router("/novel/detail", &controllers.NovelController{}, "get:Detail")
	//修改状态
	beego.Router("/novel/update_status", &controllers.NovelController{}, "post:UpdateStatus")

}
